package ch18.v3.model;

import java.io.Serializable;

public class Family extends Person implements Serializable {
    private static final long serialVersionUID = 1L;
    private String relationship;

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    @Override
    public String toString() {
        return "家庭成员信息：家庭成员与学生关系：" + relationship +
                "，姓名：" + super.getName() +
                "，电话：" + super.getTelephone();
    }
}